from pydantic import BaseModel, Field

class RegisterItems(BaseModel):
    email: str = Field(..., description="邮箱")
    userName: str = Field(..., description="用户名")
    password: str = Field(..., description="密码")
    confirmPassword: str = Field(..., description="确认密码")

class Register(BaseModel):
    params: RegisterItems = Field(..., description="注册参数")


class LoginItems(BaseModel):
    userName: str = Field(..., description="用户名")
    password: str = Field(..., description="密码")

class Login(BaseModel):
    params: LoginItems = Field({}, description="注册参数")